package com.securecrt.pojo;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import android.content.Context;
import android.content.res.AssetManager;
import android.content.res.Resources;
import android.util.Log;

public class PropertiesHelper {
    public static final String LOG_TAG = "PropertiesHelper";
    public static final String URL_LIST_PRODUCT = "url";
    
    
    public static Properties loadProperties(Context context) {
        Properties properties = null;
        Resources resources = context.getResources();
        AssetManager assetManager = resources.getAssets();

        // Read from the /assets directory
        try {
            InputStream inputStream = assetManager.open("manager.properties");
            properties = new Properties();
            properties.load(inputStream);
            
          
            Log.i(LOG_TAG, "The properties are now loaded");
        } catch (IOException e) {
            Log.i(LOG_TAG, "Failed to open payment web property file", e);
        }
        
        return properties;                        
    }
}
